package com.ttx.pattern.example.mediator.after;


/**
 * @author TimFruit
 * @date 19-6-7 上午10:57
 */
public class ConcreteMediator extends  Mediator{  // 具体中介者一般只有一个, 即通用中介者


    @Override
    public void sendMessageToColleague1(String message) {
        super.colleague1.receiveMessage(message);
    }

    @Override
    public void sendMessageToColleague2(String message) {
        super.colleague2.receiveMessage(message);
    }
}
